package com.bdqn.qnnews.wemedia;

import com.bdqn.qnnews.articel.api.feign.ArticleFeignClient;
import com.bdqn.qnnews.schedule.api.feign.TaskFeignClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 自媒体微服务
 * @author xlzhang
 */
@EnableScheduling
@EnableAsync  // 开启异步执行的注解驱动
@EnableFeignClients(clients = {
        ArticleFeignClient.class,
        TaskFeignClient.class}
)
@SpringBootApplication
public class WeMediaServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(WeMediaServiceApplication.class, args);
    }
}